package Function.monsterattack.msSkills;

import Frame.battleanimation.ABattleAni;
import Frame.battleanimation.HuJiaoHuoBanAni;
import VWorldGameStudio.FCBattleOrder;
import VWorldGameStudio.FCMonster;
import VWorldGameStudio.FCPlayerBattleWrap;
import VWorldGameStudio.MstAttack;

import static FCRendering.FCRMaster.fcv;


//呼叫同伴，规则只能叫和自己同类的同伴
public class PartnerHelpMsAttck extends ASpecialAttack{
    @Override
    public ABattleAni getBattleAnimation(FCMonster monster, MstAttack mstAttack,int[] msStartPoint, int[] targetPoint) {
        Integer[] coor = fcv.getBattleMonsterCoor().get(fcv.getBattleMonster().indexOf(monster));
        int[] start = new int[]{coor[0] + coor[2], coor[1]+coor[3]/2};
        return new HuJiaoHuoBanAni(monster, start);
    }

    @Override
    public void specialMsAttack(MstAttack mstAttack, FCMonster srcMs, FCBattleOrder order, FCPlayerBattleWrap target) {

    }
}
